package com.euond.accv.gateway.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.euond.common.domain.AbstractEntity;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "customer_dev_authorization")
@DynamicInsert // 该注解会根据属性非空动态生成insert语句
public class CustomerDevAuthorization extends AbstractEntity<Integer> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer id;

	/**
	 * 
	 */
	@Column(name = "customer_no")
	private String customerNo;

	/**
	 * 
	 */
	@Column(name = "server_name")
	private String serverName;

	/**
	 * 
	 */
	@Column(name = "url")
	private String url;

	/**
	 * 
	 */
	@Column(name = "order_no")
	private Integer orderNo;

	/**
	 * 
	 */
	@Column(name = "status")
	private String status;

	/**
	 * 
	 */
	@Column(name = "remarks")
	private String remarks;

	/**
	 * 
	 */
	@Column(name = "creator")
	private String creator;

	/**
	 * 
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "create_time")
	private Date createTime;

	/**
	 * 
	 */
	@Column(name = "modifier")
	private String modifier;

	/**
	 * 
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "modify_time")
	private Date modifyTime;


	public void setId(Integer id) {
		this.id = id;
	}

	public String getCustomerNo() {
		return this.customerNo;
	}

	public void setCustomerNo(String customerNo) {
		this.customerNo = customerNo;
	}

	public String getServerName() {
		return this.serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getOrderNo() {
		return this.orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getModifier() {
		return this.modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public Date getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return this.id;
	}
}
